package com.hundsun.documentripper.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hundsun.documentripper.domain.pojo.FileNodeHistory;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：历史文件节点Mapper
 * @date ：Created in 2021/1/26
 */
public interface FileNodeHistoryMapper extends BaseMapper<FileNodeHistory> {

    @Select("insert into file_node_history " +
            "select * from file_node where file_uuid = #{fileUuid} ")
    void insertFromFile(String fileUuid);

    /**
     * 批量插入
     *
     * @param entityList 实体列表
     * @return 影响行数
     */
    Integer insertBatchSomeColumn(List<FileNodeHistory> entityList);

}